package com.lims.landInfo.service;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;


import javacommon.base.*;

import cn.org.rapid_framework.page.*;

import com.lims.landInfo.model.*;
import com.lims.landInfo.dao.*;
import com.lims.landInfo.vo.query.*;

/**
 * @author zzh
 * @version 1.0
 * @since 1.0
 */@Service
@Transactional @SuppressWarnings("unchecked")
public class CorporationManager extends BaseManager<Corporation,java.lang.String>{

	private CorporationDao corporationDao;
	/**增加setXXXX()方法,spring就可以通过autowire自动设置对象属性,请注意大小写*/
	public void setCorporationDao(CorporationDao dao) {
		this.corporationDao = dao;
	}
	
	public EntityDao getEntityDao() {
		return this.corporationDao;
	}
	
	@Transactional(readOnly=true)
	public Page findPage(CorporationQuery query) {
		return corporationDao.findPage(query);
	}

	public void saveAll(List list) {
		this.corporationDao.saveAll(list);
	}
	
}
